-- ==================== comment ====================
-- 注释
require('Comment').setup(
  {
    padding   = true,
    sticky    = true,
    ignore    = nil,
    toggler   = {
      line  = '<S-x>',
      block = 'gcc',
    },
    opleader  = {
      line  = '<C-x>',
      block = 'gc',
    },
    extra     = {
      -- 在上一行打注释
      above = 'gcO',
      -- 在下一行打注释
      below = 'gco',
      -- 在行尾打注释
      eol   = 'gcA',
    },
    mappings  = {
      basic    = true,
      extra    = true,
      extended = false,
    },
    pre_hook  = nil,
    post_hook = nil,
  }
)
-- local ft = require('Comment.ft')
-- ft
--     .set('yaml', '#%s')
--     .set('json', { '//%s', '/*%s*/' })
--     .set('html', { '<!--%s-->', '/*%s*/' })
--     .set('vue', { '<!--%s-->', '/*%s*/' })
